package com.rongshu.view.discovery.presenter;

import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.rongshu.R;
import com.rongshu.view.base.mvp.BasePresenter;
import com.rongshu.view.base.mvp.INetView;
import com.rongshu.view.discovery.activity.SearchResultActivity;
import com.rongshu.view.discovery.bean.ArticleDetailBean;

import java.util.ArrayList;
import java.util.List;

/**
 * created by zhengweis on 2018/11/1.
 * description：搜索结果：文章展示
 */
public class SearchResultArticlePresenter extends BasePresenter<INetView> {


    public SearchResultArticlePresenter(Context context) {
        super(context);
    }

    public void requestArticleData(){
        List<ArticleDetailBean> list = new ArrayList<>();
//        for (int i = 0; i < 10; i++) {
//            list.add(new ArticleDetailBean("零基础如何练字 | 关于如何练字大家最关心的练字大家最关心的", "用户", "2018/1/1"));
//        }
        getView().success(list, 0);
    }
}
